﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ShareB.Models.ProfileModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Profile
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Profile</h2>

    <fieldset>
        <legend>Information</legend>
        
        <table>
        <tr><th>
            <div class="display-label">UserName</div>
            </th><td>
            <div class="display-field"><%: Model.UserName %></div>
        </td></tr>
        <tr><th>
            <div class="display-label">Email</div>
            </th><td>
            <div class="display-field"><%: Model.Email %></div>
        </td></tr>
        <tr><th>
            <div class="display-label">Password</div>
            </th><td>
            <div class="display-field"><%: Model.Password %></div>
        </td></tr>
        <tr><th>
            <div class="display-label">FirstName</div>
            </th><td>
            <div class="display-field"><%: Model.FirstName %></div>
        </td></tr>
        <tr><th>
            <div class="display-label">LastName</div>
            </th><td>
            <div class="display-field"><%: Model.LastName %></div>
        </td></tr>
        <tr><th>
            <div class="display-label">Address</div>
            </th><td>
            <div class="display-field"><%: Model.Address %></div>
        </td></tr>
        <tr>
        <td colspan="2">
            <%: Html.ActionLink("Edit", "EditProfile") %>
        </td>
        </tr>
        </table>
    </fieldset>

    <fieldset>
        <legend>My Publishers</legend>
        <table>
        <tr>
            <th colspan="2">
                <div class="display-label">Publishers</div>
            </th>
        </tr>

            <% foreach (var mod in Model.Publishers)
               {  %>
            <tr>
            <td>
            <%:             mod.Photograph%>
            </td>
            <td>
            <%:             mod.Username%>
            </td>
            </tr>
            <% } %>

        
        <tr><td colspan="2">
        <%: Html.ActionLink("Managing Followers", "ManageFollowers")%>
        </td></tr>
        </table>
    </fieldset>

    <p>
        <%: Html.ActionLink("Back to List", "Index", "Home") %>
    </p>

</asp:Content>

